﻿import Button from "../../ui/Button.jsx";
import {useDispatch} from "react-redux";
import {deleteItem} from "./cartSlice.js";

function DeleteItem({pizzaId}){
    const dispatch = useDispatch();

    return (
        <div>
            <Button type={"small"} onClick={(()=>dispatch(deleteItem()))}>
                Delete
            </Button>
        </div>
    );
}


export default DeleteItem;